package com.skyolder.milkbee.repository;

import com.skyolder.milkbee.domain.Address;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.*;

import java.util.List;

/**
 * Spring Data JPA repository for the Address entity.
 */
@SuppressWarnings("unused")
public interface AddressRepository extends JpaRepository<Address,Long> {

	Page<Address> findByUserId(Long userId, Pageable pageable);

	Address findOneByIdAndUserId(Long id, Long userId);

	void deleteByIdAndUserId(Long id, Long userId);

}
